<template>
  <!--  <result-info v-bind="params"/>-->

  <result-info :right-count="rightCount"
               :score="score"
               :wrong-count="wrongCount"
               icon="/web-hft-ee/static/img/m/pass_test.png"
               label="练习完毕"
  />
</template>
<script>
  import {isMobile} from '../../../../utils/util'
  import ResultInfo from './ResultInfo'

  export default {
    name: 'PracticeResultInfo',
    components: {ResultInfo},
    props: ['result', 'rightCnt'],
    // props: ['score', 'rightCount', 'wrongCount'],
    computed: {
      isMobile: () => isMobile(),
      score() {
        return this.result.score || 0
      },
      rightCount() {
        return this.rightCnt;
      },
      wrongCount() {
        return this.result['totalCnt'] - this.rightCount;
      },
    },
  }
</script>
